<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>sticky应用案例1 - 图片堆叠效果</title>
    <style>
        div {
            /* top:0; =>  fixed 固定
               top不等于0   => relative 相对
             */
            position: sticky;
            top: 0;
        }
    </style>
</head>

<body>
    <div><img src="https://picsum.photos/id/10/480/360"></div>
    <div><img src="https://picsum.photos/id/11/480/360"></div>
    <div><img src="https://picsum.photos/id/12/480/360"></div>
    <div><img src="https://picsum.photos/id/13/480/360"></div>
    <div><img src="https://picsum.photos/id/14/480/360"></div>

</body>

</html>